package com.evan.designpatterns.adapter.poweradapter;

/**
 * @author :liujiapeng01
 * @date :2019-03-18 10:46
 **/
public class PowerAdapter implements DC5 {


    private AC220 ac220;

    public PowerAdapter(AC220 ac220) {
        this.ac220 = ac220;
    }

    @Override
    public int outputDc5V() {
        int adapterInput = ac220.outputAC220V();
        int adapterOutput = adapterInput / 44;
        return adapterOutput;

    }
}
